/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package workshopdesign.Model;

import java.io.Serializable;

/**
 *
 * @author Dom
 */
public class Person implements Serializable {

    private long id;
    private String name;
    private String address;
    private String postalCode;
    private String city;
    private String phone;
    private String email;

    public Person(long id, String name, String address, String postalCode, String city, String phone, String email) {
        this.id = id;
        this.name = name;
        this.address = address;
        this.postalCode = postalCode;
        this.city = city;
        this.phone = phone;
        this.email = email;
    }
    //Mutator

    public void changeId(long NewId) {
        id = NewId;
    }

    public void changeName(String NewName) {
        name = NewName;
    }

    public void changeAddress(String NewAddress) {
        address = NewAddress;
    }

    public void changePostalCode(String NewPostalCode) {
        postalCode = NewPostalCode;
    }

    public void changeCity(String NewCity) {
        city = NewCity;
    }

    public void changePhone(String NewPhone) {
        phone = NewPhone;
    }

    public void changeEmail(String NewEmail) {
        email = NewEmail;
    }
    //Acessors

    public long getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public String getAddress() {
        return address;
    }

    public String getPostalCode() {
        return postalCode;
    }

    public String getCity() {
        return city;
    }

    public String getPhone() {
        return phone;
    }

    public String getEmail() {
        return email;
    }
}
